package freedom.solution.app.prueba;

import freedom.solution.app.restaurante.imagedb.Utilities;
import freedom.soluttion.app.restaurante.R;
import android.app.Activity;
import android.os.Bundle;
import android.widget.ImageView;

public class ImageFullScreenActivity extends Activity {

	public static final String IMAGE_PATH = "imagevieweractivityfilepath";

	
	byte [] foto;
	
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.fullscreen);
		ImageView i = (ImageView)findViewById(R.id.image_viewer_image);
		Bundle extras = getIntent().getExtras();
		if(extras != null) {
           foto = extras.getByteArray("FOTO");
		
		}
	  i.setImageBitmap(Utilities.getImage(foto));
	}

}